package com.dyh.quickdemo.dasync;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;

/*
@Author=Joey Wheeler
@Date=2021/3/11 16:53
*/

@SpringBootTest
public class AsyncHandlerCenterTest {

    @Autowired
    AsyncHandlerCenter asyncHandlerCenter;

    @Test
    public void test(){
        Consumer<Long> handler =
                asyncHandlerCenter.get("That.x");

        handler.accept(-1L);
    }


    public static void main(String[] args) {
    }
}
